Repository navigation
fix(app-shell): publish-all seed warning says the pack sentence, not engine text - #35301
Merged
objectstack-fleet[bot] merged 2 commits intoNov 19, 2026
Merged
Conversation
#35141) Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…engine text (#35141) Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1:
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-19T03:39Z
ACCEPT 6998930010 (L1-a) at head |
objectstack-fleet
Bot
deleted the
claude/issue-35141-seed-warn-pack-sentence
branch
November 19, 2026 03:59
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Bill · project thread
Fixes #35141
Clause-②: no
Metadata-protocol: none
维护者速读
ui/packages/app-shell/src/preview/usePublishAllDrafts.ts(seedFailed标志与seedWarn那一处 toast);ui/packages/app-shell/src/preview/__tests__/usePublishAllDrafts.seedWarn-35141.test.tsx;.changeset/35141-publish-all-seed-warn-pack-sentence.md。pnpm --dir ui exec vitest run packages/app-shell/src/preview/__tests__/usePublishAllDrafts.seedWarn-35141.test.tsx,预期 8 个用例全绿(en 与 zh-Hans 两种语言)。What changes
usePublishAllDrafts(Home's Publish all and the draft-preview bar) warnshome.pendingDrafts.seedWarnwhen a seed fails. The warning's description used to be the first entry of a list filled from two sources that are not customer sentences:health.seedError(the seed loader's engine text) ahead of the pack sentence;seedApplied.error(engine text again), else a hard-coded EnglishNAME: sample data failed to loadin every locale.The list is replaced by one
seedFailedflag set from either door, and the description is always the pack sentencechatbot.build.health.seedFailed: the sentence the chat'sPublishHealthLinesays for the same failure (objectstack#32984 Q1 ruling: user-facing text is the customer sentence, never developer or engine text).seedAppliedcarries no customer sentence in the spec today, so there is no producer sentence to prefer. The package-less loop uses the plain pack sentence without the draft name, which is how the chat line and the batch door already word it; no locale key is added.The changeset is
patchon@object-ui/app-shell. No locale keys, props or exports change.Tests
New file
usePublishAllDrafts.seedWarn-35141.test.tsx(its own file becauseI18nProviderinstalls a module-level i18next global, as the siblinguserMessage-34553pin does), with the shippedenandzh-Hanspacks:seedAppliedfailed with engine text: title is the pack'sseedWarn, description is the pack'sseedFailed, the engine text is absent;Harness reading on the unfixed source (zh-Hans included) = ablation, then restore
The fix was committed first (3cf598f). The mutation leg restored
usePublishAllDrafts.tsfrom the base commit 0188989 (tree only); on-disk proof: the old engine-text push spelling counted 1, the newlet seedFailed = falsecounted 0. The subject resolves through source (relative import), so no build sits between the edit and the run.The 6 failures are the six defect cases (3 per locale); the 2 passes are the CONTROL cases. Restore:
git checkout HEAD -- FILE, then the file's hash equals the HEAD blob (76a3fe6ba1) andgit diff HEADis empty.Green on the fixed head
All six
usePublishAllDraftspin files, including the existing objectstack#32984 case that asserts the pack key as the description.Acceptance notes
AiChatPage.tsx, theconsole.ai.seedWarntoast inonPublishDrafts) also putsseedApplied.error(engine text) into the description, and with noerrorit putsString(seedApplied.errors[0]), which for a structured error row reads[object Object]. Reported to the seat for filing, not fixed here.Test UI,Type Check UI); locally only the targeted pins, the app-shell type-check and the derived gate list ran.Verification
All local readings are on head 3cf598f (objectstack-ai/objectstack).
pnpm --filter @object-ui/app-shell run type-check, bothtsconfig.jsonandtsconfig.test.json;--listFilesOnlyon the test project lists the new pin):os-verify-lock: VERDICT command-exit 0.node scripts/pm/dispatch-gates.mjs --commands, change set from git): 38 families, all exit 0, pluspnpm check:changeset-fixed(its roster sits under.changeset/). Reconciliation:dispatch-gates --ran: 38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3).pnpm --dir ui run check:new-line-citations:VERDICT new-cross-file-line-citations: 0 new citation(s).node scripts/pm/overlap-check.mjs:VERDICT clean exit 0(merges cleanly into origin/main 0188989).Test UI,Type Check UI,Lint UI), and every repo-widecheck:*scan.Derived gates, each with its exit code
Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY